import request from "../utlis/Request"



export default{
    listCollection(form){
        return request({
            method: 'put',
            url: '/Qqntiqueauth/listCollection',
            data: form
        })
    },

    updataCollectionC(id, consignment){
        return request({
            method: 'get',
            url: '/Qqntiqueauth/updataCollectionC',
            params: {
                id: id,
                consignment: consignment
            }
        })
    },

    updataCollectionI(id, increase){
        return request({
            method: 'get',
            url: '/Qqntiqueauth/updataCollectionI',
            params: {
                id: id,
                increase: increase
            }
        })
    },

    listCollectionStatus1(){
        return request({
            method: 'get',
            url: '/Qqntiqueauth/listCollectionStatus1',
        })
    },

    queryCoolectionById(id) {
        return request({
            method: 'get',
            url: '/Qqntiqueauth/queryCoolectionById',
            params: {
                id: id
            }
        })
    },

    queryUserCoolecById(id){
        return request({
            method: 'get',
            url: '/Qqntiqueauth/queryUserCoolecById',
            params: {
                uid: id,
            }
        })
    },
    zhuangzeng(user, antique, uid){
        return request({
            method: 'post',
            url: '/Qqntiqueauth/zhuangzeng',
            data: {
                zid: user.id,
                aid: antique.aid,
                id: antique.id,
                uid: uid
            }
        })
    },
    
}